<?php
///
   abstract class gestion_path{
	  	public function curPageName() {
	 		return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
		}  	
		public function getcurentpath(){
			$sBasePath = $_SERVER['PHP_SELF'];	
			$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, self::curPageName()) ) ;
			return $sBasePath;
		}
    }
?>